﻿namespace SapaFinance.Domain.Model
{
    public class TaxRate
    {
        public TaxRate()
        {
            Value = 0;
        }

        public TaxRate(int value)
            : this()
        {
            if (value > 0 && value < 100)
                Value = value;
        }

        public int Value { get; set; }

        public override string ToString()
        {
            return string.Format("{0}%", Value);
        }
    }
}